package util;

import java.util.Comparator;

public class Pair<T1, T2> {
	public T1 a;
	public T2 b;

	public Pair(T1 a_, T2 b_) {
		a = a_;
		b = b_;
	}
	
	
	public static class StrLongComparator implements Comparator<Pair<String ,Long>> {

		@Override
		public int compare(Pair<String, Long> arg0, Pair<String, Long> arg1) {
			if (arg0.b.compareTo(arg1.b) != 0) {
				return arg0.b.compareTo(arg1.b);
			} else {
				return arg0.a.compareTo(arg1.a);
			}
		}
		
	}
}
